package xyz.labmem.app.util

import javafx.geometry.Rectangle2D
import javafx.stage.Screen

object ScreenType {

    val sr: Rectangle2D = Screen.getPrimary().bounds

    fun getWidth(): Double {
        if (sr.width <= 1600) {
            return sr.width.div(1.8)
        } else if (sr.height > 2000) {
            return sr.width.div(1.3)
        }
        return sr.width.div(1.5)
    }

    fun getHeight(): Double {
        if (sr.height <= 900) {
            return sr.height.div(1.8)
        } else if (sr.height > 1200) {
            return sr.height.div(1.3)
        }
        return sr.height.div(1.4)
    }

}